package cn.demoncat.util.lang.enums;

/**
 * 
 * 描述：时间单位枚举
 *
 * @author yxl
 *
 * @since 2017年3月10日
 */
public enum DateUnitEnum {
	
	YEAR("0","yyyy"),
	MONTH("1","MM"),
	DAY("2","dd"),
	HOUR("3","HH"),
	MINUTE("4","mm"),
	SECOND("5","ss"),
	WEEK("6","w"),
	;
  
	private final String code;
	private final String value;
	DateUnitEnum(String code, String value){
		this.code=code;
		this.value=value;
	}
	public String getCode() {
		return code;
	}
	public String getValue() {
		return value;
	}
}
